package com.aqiang.user_content.model.repository;

import com.aqiang.net.entity.BaseEntity;
import com.aqiang.user_content.contract.RegisterContract;
import com.aqiang.user_content.entity.User2Entity;
import com.aqiang.user_content.entity.UserEntity;
import com.aqiang.user_content.model.service.RegisterService;

import io.reactivex.Observable;

public class RegisterRepositroy extends RegisterContract.RegisterRepository {
    @Override
    public Observable<UserEntity> requestRegister(UserEntity userEntity) {
        return mModel.requestRegister(userEntity);
    }

    @Override
    public Observable<BaseEntity<User2Entity>> request2Register(User2Entity userEntity) {
        return mModel.request2Register(userEntity);
    }

    @Override
    protected void createModel() {
        mModel = new RegisterService();
    }
}
